import { database, column, ColumnType, Table } from "websql-orm";
@database("chat_db", "friend")
export default class Friend extends Table {
	@column(ColumnType.NUMBER | ColumnType.PRIMARY)
	id;
	// 好友关系ID
	@column(ColumnType.NUMBER)
	cr_id;
	@column(ColumnType.NUMBER)
	cca_id;
	@column(ColumnType.STRING)
	cca_name;
	@column(ColumnType.STRING)
	cca_avatar;
	@column(ColumnType.NUMBER)
	unread_total;
	@column(ColumnType.STRING)
	last_msg;
	@column(ColumnType.NUMBER)
	last_msg_type = 0;
	@column(ColumnType.NUMBER)
	created_at = Date.now();
	@column(ColumnType.NUMBER)
	updated_at = Date.now();
}
